<?php
class Aco extends AppModel{
	var $name = 'Aco';
	var $useTable = 'acos';
	var $primaryKey = 'id';
	var $displayField = 'alias';
	var $recursive = 1;
	
//	var $hasAndBelongsToMany = array(
//		'ArosAcos' => array(
//			'className' => 'Aro',
//			'joinTable' => 'aros_acos',
//			'with' => 'ArosAcos',
//			'foreignKey' => 'aco_id',
//			'associationForeignKey' => 'aro_id'
//		)	
//	);
	
	var $belongsTo = array(
		'ParentAco' => array(
			'className' => 'Aco',
			'foreignKey' => 'parent_id'
		)
	);
	
	var $hasMany = array(
		'ChildrenAcos' => array(
			'className' => 'Aco',
			'foreignKey' => 'parent_id'
		)
	);
}